<template>
  <div class="newGoods">
    <h3>周一周四 . 新品首发</h3>
    <ul>
      <li v-for="item in newGoodsArr" :key="item.id">
        <img :src="item.list_pic_url" alt="" />
        <p class="p1">{{ item.name }}</p>
        <p class="p2">{{ item.retail_price | formatMoney }}</p>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  name: "newGoods",
  props: ["newGoodsArr"],
  data() {
    return {};
  },
  components: {},
  methods: {},
  created() {},
  mounted() {},
  updated() {},
};
</script>
<style scoped lang='less'>
.newGoods {
  overflow: hidden;
  padding-top: 20px;
//   background-color: #efefef;
  h3 {
    text-align: center;
    background-color: white;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    font-weight: 900;
  }
  ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: white;
    li {
      width: 49%;
      // padding-bottom:5px ;

      .p1 {
        font-size: 16px;
        text-align: center;
        margin-bottom: 10px;
        color: #000000;
      }
      .p2 {
        font-size: 14px;
        text-align: center;

        color: #d8322d;
      }
      img {
        width: 100%;
      }
    }
  }
}
</style>